﻿`<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InstrumentUpgradeExtraBatch.aspx.cs"
    Inherits="Runda.CMS.Portal.ContractFollowUp.InstrumentUpgradeExtraBatch" %>

<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="rad" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <script src="../Content/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../Content/Grid/map_grid.js" type="text/javascript"></script>

    <link rel="stylesheet" type="text/css" href="../Content/Grid/mapgrid.css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" />
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../Content/global.css" />

    <script language="javascript" src="../Content/settings.aspx"></script>

    <script src="../Content/lookup/Lookup.js" type="text/javascript"></script>

    <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />

    <script language="javascript" src="../Content/Detail.js"></script>

    <script language="javascript" src="../Content/lookup/Lookup.js"></script>

    <script language="javascript" src="../Content/Menu/menu.js"></script>

    <script language="javascript" src="../Content/util.js"></script>
    <script src="../Content/global.js" type="text/javascript"></script>
    
    
</head>
<body>
    <form id="form1" runat="server">
    <rad:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="btnAdd">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="gridSubItems" />
                </UpdatedControls>
            </rad:AjaxSetting>
            <rad:AjaxSetting AjaxControlID="gridSubItems">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="gridSubItems" LoadingPanelID="AjaxLoadingPanel" />
                </UpdatedControls>
            </rad:AjaxSetting>
        </AjaxSettings>
        <AjaxSettings>
            <rad:AjaxSetting AjaxControlID="btnAddInstrument">
                <UpdatedControls>
                    <rad:AjaxUpdatedControl ControlID="gridSubInstrument" LoadingPanelID="AjaxLoadingPanel" />
                </UpdatedControls>
            </rad:AjaxSetting>
        </AjaxSettings>
    </rad:RadAjaxManager>
    <rad:AjaxLoadingPanel runat="server" ID="AjaxLoadingPanel">
        <img src="../Images/Loading.gif" />数据载入...
    </rad:AjaxLoadingPanel>
    <table class="mnubar" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td class="icMenu" nowrap>
                    <asp:LinkButton ID="lnkbtnSaveAndClose" runat="server" OnClick="lnkbtnSaveAndClose_Click"><span class="menu" title="保存" onclick="window.execScript(this.action);"><img class="mnuBtn" src="../Content/Menu/SaveClose_16_blue.gif"><span class="mnuBtn">保存</span></span></asp:LinkButton>
                    <img src="../Content/Menu/separator.gif">
                    <span class="menu" title="关闭" onclick="window.close();">
                        <img class="mnuBtn" src="../Content/Menu/Close_16_blue.gif"><span class="mnuBtn">关闭</span></span>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
    </div>
    <div id="areaForm" class="area">
        <table cellspacing="0" cellpadding="0" width="100%">
            <tbody>
                <tr>
                    <td valign="top">
                        <div style="display: inline" id="appForm_tab0" class="tab">
                            <asp:HiddenField ID="hiddenRegisterID" runat="server" />
                            <table style="table-layout: fixed" id="Table2" cellspacing="0" cellpadding="3" width="800px">
                                <tr>
                                        <td style="width:10%" align="right">
                                            仪器
                                        </td>
                                        <td style="width:20%">
                                            <table cellpadding="0" cellspacing="0" width="100%" id="instrument">
                                                <tr>
                                                    <td nowrap>
                                                        <div class="lu" detailpage="/SyncManage/InstrumentList.aspx?InstrumentCategoryGUID=">
                                                            <span class="lui" oid="" runat="server" onclick="openlui();" id="hiddenInstrumentName">
                                                            </span>&nbsp;</div>
                                                    </td>
                                                    <td width="25" style="text-align: right;">
                                                        <img class="lu2" id="parmT" lookupstyle="single" features="dialogWidth:360px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;"
                                                            lookupcustom="" src="/Images/btn_off_lookup.gif" lookupclass="Instrument"
                                                            lookupbrowse="0" additionalparams="" /><input maptype="lu" id="hiddenInstrumentID"
                                                                class="lu" type="hidden" runat="server" name="hiddenInstrumentID" value="" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        
                                        <%--<td align="right" style="display:none"  style="width:10%">
                                            客户
                                        </td>
                                        <td style="display:none" style="width:50%">
                                            <table cellpadding="0" cellspacing="0" style="table-layout: fixed;" width="100%">
                                                <tr>
                                                    <td nowrap>
                                                        <div class="lu" detailpage="/SyncManage/CustomerInfo.aspx?CustomerID=">
                                                            <span id="hiddenuserName" runat="server" class="lui" oid="" onclick="openlui();">
                                                            </span>&nbsp;</div>
                                                    </td>
                                                    <td style="text-align: right;" width="25">
                                                        <img class="lu2" features="dialogWidth:450px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;"
                                                            lookupbrowse="" lookupclass="" lookupcustom="/lookup/selectcustomeroflookup.aspx?title=customer"
                                                            lookupstyle="single" src="../Images/btn_off_lookup.gif" /><input id="hiddenUserID"
                                                                runat="server" class="lu" maptype="lu" name="customerGUID" type="hidden" value=""
                                                                onpropertychange="javascript:document.getElementById('parmT').additionalparams='CustomerID='+document.getElementById('hiddenUserID').value;" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>--%>
                                        <td style="width:10%">序列号</td>
                                        <td style="width:20%"><asp:TextBox ID="txtSerialNumB" runat="server"></asp:TextBox></td>
                                        <td style="width:1%">--</td>
                                        <td style="width:20%"><asp:TextBox ID="txtSerialNumE" runat="server"></asp:TextBox></td>
                                        <td style="width:10%"><asp:Button runat="server" Text="添加" ID="btnAddInstrument" OnClick="btnAddInstrument_Click" /></td>
                                    </tr>
                            </table>
                    </td>
                </tr>
            </tbody>
        </table>
        
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
        <div style="margin: 5px 0 5px 0">
        </div>
        <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>器械升级明细</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    </td>
                </tr>
            </tbody>
        </table>
        <rad:RadGrid runat="server" ID="gridSubInstrument" Skin="OCM" AutoGenerateColumns="False"
            AllowSorting="false" GridLines="None" EnableAJAX="true" EnableAJAXLoadingTemplate="True"
            OnItemCommand="gridSubInstrument_ItemCommand">
            <AJAXLoadingTemplate>
                <img src="../Images/loadding_orange.gif" />
                加载中...
            </AJAXLoadingTemplate>
            <MasterTableView DataKeyNames="InstrumentID">
                <Columns>
                   <rad:GridTemplateColumn HeaderText="选择">
                        <ItemTemplate>
                        <asp:CheckBox runat="server" ID="isCheck" />
                        </ItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridTemplateColumn HeaderText="客户名称">
                        <ItemTemplate>
                            <asp:Label ID="CustomerName" runat="server" Text='<%# Eval("CustomerName") %>'>
                            </asp:Label>
                            <asp:Label ID="CustomerID" runat="server" Text='<%# Eval("CustomerID") %>' Visible="false">
                            </asp:Label>
                        </ItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridTemplateColumn HeaderText="器械名称">
                        <ItemTemplate>
                            <asp:Label ID="InstrumentName" runat="server" Text='<%# Eval("InstrumentName") %>'>
                            </asp:Label>
                            <asp:Label ID="InstrumentID" runat="server" Text='<%# Eval("InstrumentID") %>' Visible="false">
                            </asp:Label>
                        </ItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridTemplateColumn HeaderText="序列号">
                        <ItemTemplate>
                            <asp:Label ID="serialNum" runat="server" Text='<%# Eval("serialNum") %>'>
                            </asp:Label>
                        </ItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridTemplateColumn HeaderText="当前软件版本">
                        <ItemTemplate>
                            <asp:Label ID="SoftwareVersion" runat="server"  Text='<%# Eval("SoftwareVersion") %>'></asp:Label>
                        </ItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridButtonColumn CommandName="delete" Text="删除">
                    </rad:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </rad:RadGrid>
        <table style="table-layout: fixed" id="Section1" cellspacing="0" cellpadding="3"
            width="800px">
            <tr>
                <td align="right" style="width:10%">
                    升级配件
                </td>
                <td align="left" style="width:30%">
                    <table cellpadding="0" cellspacing="0" width="100%" id="instrumentAssembly" style="">
                        <tr>
                            <td nowrap>
                                <div class="lu" detailpage="/SyncManage/InstrumentList.aspx?InstrumentCategoryGUID=">
                                    <span class="lui" oid="" runat="server" onclick="openlui();" id="hiddenAccessoryName">
                                    </span>&nbsp;</div>
                            </td>
                            <td width="25" style="text-align: right;">
                                <img class="lu2" id="parmT" lookupstyle="single" features="dialogWidth:360px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;"
                                    lookupcustom="" src="/Images/btn_off_lookup.gif" lookupclass="Accessory" lookupbrowse="0"
                                    additionalparams="" /><input maptype="lu" id="hiddenAccessoryID" class="lu" type="hidden"
                                        runat="server" name="hiddenAccessoryID" value="" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td  style="width:10%"><asp:Button runat="server" Text="添加" ID="btnAdd" OnClick="btnAdd_Click" /></td>
                <td  style="width:50%"></td>
            </tr>
        </table>
        
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
        <div style="margin: 5px 0 5px 0">
        </div>
        <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>配件升级明细</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>
                    </td>
                    <td class="icMenu mnuRight" nowrap>
                    </td>
                </tr>
            </tbody>
        </table>
        <rad:RadGrid runat="server" ID="gridSubItems" Skin="OCM" AutoGenerateColumns="False"
            AllowSorting="false" GridLines="None" EnableAJAX="true" EnableAJAXLoadingTemplate="True"
            OnItemCommand="gridSubItems_ItemCommand">
            <AJAXLoadingTemplate>
                <img src="../Images/loadding_orange.gif" />
                加载中...
            </AJAXLoadingTemplate>
            <MasterTableView DataKeyNames="AccessoryID">
                <Columns>
                    <rad:GridTemplateColumn HeaderText="配件名称">
                        <ItemTemplate>
                            <asp:Label ID="AccessoryName" runat="server" Text='<%# Eval("AccessoryName") %>'>
                            </asp:Label>
                            <asp:Label ID="AccessoryID" runat="server" Text='<%# Eval("AccessoryID") %>' Visible="false">
                            </asp:Label>
                        </ItemTemplate>
                    </rad:GridTemplateColumn>
                    <rad:GridButtonColumn CommandName="delete" Text="删除">
                    </rad:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </rad:RadGrid>
    </div>
    <table>
        <tr>
            <td class="req" style="width:60px">
                执行人：
            </td>
            <td style="width:200px">
                <table cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
                    <tr>
                        <td nowrap>
                            <div class="lu">
                                <span class="lui" oid="" onclick="openlui();"></span>
                                <asp:Label ID="employeeName" runat="server"></asp:Label></div>
                        </td>
                        <td width="25" style="text-align: right;">
                            <img class="lu2" lookupbrowse="" lookupstyle="single" lookupclass="" features="dialogWidth:360px;dialogHeight:500px;resizable:yes;center:yes;status:no;help:no;scroll:no;"
                                lookupcustom="/Lookup/selectcustomeroflookup.aspx?title=user&department=maintain" src="/Images/btn_off_lookup.gif"><input
                                    maptype="lu" class="lu" type="hidden" name="employeeGUID" value="" runat="server"
                                    id="employeeGUID">
                        </td>
                    </tr>
                </table>
            </td>
            <td class="req" style="width:100px">
                期望到达日期：
            </td>
            <td>
                <rad:RadDateTimePicker ID="ExpectEndDate" Width=160px runat="server" Culture="Chinese (People's Republic of China)"
                    Skin="WebBlue"> 
                    <DateInput Skin="WebBlue">
                    </DateInput>
                    <Calendar  Skin="WebBlue">  
                        <SpecialDays>  
                            <rad:RadCalendarDay Date="" Repeatable="Today">  
                                <ItemStyle CssClass="radCalToday_Default" />  
                            </rad:RadCalendarDay>  
                        </SpecialDays>  
                    </Calendar>  
                </rad:RadDateTimePicker>
            </td>
            <td style="width:80px">
                软件版本号：
            </td>
            <td>
                <asp:TextBox ID="txtSoftwareVersion" Width="120px" runat="server"></asp:TextBox>
            </td>
            
        </tr>
    </table>
    </form>
</body>
</html>
